package com.qinhailin.common.model;

/**
 * <p>明细表(类) 基类</p>
 * <p>要求数据表要有mID和dID, sIndex这3个栏位!</p>
 * <p>最后审核:2019-10-17</p>
 * @author harrydeep@wardyan.top
 */

@SuppressWarnings("unchecked")
public abstract class BaseDetailModel<T extends BaseDetailModel<T>> extends BaseModel<T> {
	
	@Override
	/** 明细表的主键统一定义为mID, dID */
	public String primaryKey() {
		return "mID,dID";
	}
	

	
	public T setMID(Integer mID) {
		this.set("mID", mID);
		return (T) this;
	}
	
	public Integer getMID() {
		return this.getInt("mID");
	}
	
	public T setDID(Integer dID) {
		this.set("dID", dID);
		return (T) this;
	}
	
	public Integer getDID() {
		return this.getInt("dID");
	}
	
	public T setSIndex(Integer sIndex) {
		this.set("sIndex", sIndex);
		return (T) this;
	}
	
	public Integer getSIndex() {
		return this.getInt("sIndex");
	}
	
	
	
	
	
	
	
	
	
	
	
	
}
